#include<iostream>
#include"priority_queue.h"
using namespace std;

void test_pr_queue1()
{
	//lzz::priority_queue<int> pq;
	lzz::priority_queue<int, vector<int>, Greater<int>> pq;
	pq.push(1);
	pq.push(3);
	pq.push(7);
	pq.push(5);
	while (!pq.empty())
	{
		cout << pq.top() << endl;
		pq.pop();
	}
	cout << endl;
}

void test_pr_queue2()
{
	vector<int> arr{1, 2, 3, 4, 5};
	lzz::priority_queue<int> pq(arr.begin(), arr.end());
	while (!pq.empty())
	{
		cout << pq.top() << " ";
		pq.pop();
	}
	cout << endl;
}

int main()
{
	test_pr_queue2();
	return 0;
}